# n=3
# for i in range(n):
#     print(i)

# r=["张三","李四","王五"]
#
# print(r[-2:-1])

# d=["a",2,"2b",3]
# for val in d:
#     print(val)

# for a in "hello":
#     print(a)

#
# class TsetClass(object):
#     def __init__(self,name,age):
#         self._name=name
#         self._age=age
#     def sayHello(self):
#         print("Hello  "+self._name+"  my age  "+self._age)
#
#     def get_name(self):
#         return  self._name
#
#
# a=TsetClass("tangjian","18")
# a.sayHello();
# print(a.get_name())


# class Animal(object):
#
#     def run(self):
#         print("test1 Run")
# from Common.KafkaCommon import Kafka_consumer
#
# if __name__ == '__main__':
#     consumer = Kafka_consumer('analysis-01,analysis-02,analysis-03',9092,"TestKafkaNew",'tangjian')
#     message = consumer.consume_data()
#     for i in message:
#         print(i.value)

# from Common.configCommon import configCommon
#
# name = configCommon.getvales("Hbase","name")
# print("i'm  "+name)


# mutations=[["cf:a","a"],["cf:b","b"]]
import json

from Common.HbaseCommon import HbaseCommon

# mutations=[]
# mutations.append(["cf:a","a的值"])
# mutations.append(["cf:b","b的值"])
# mutations.append(["cf:c","c的值"])
# result=HbaseCommon.addrow("TestBase","row-key1",mutations)
# print(result)
# result1=HbaseCommon.getrow("TestBase","row-key1")
# if result1 == [] :
#     print("no values")
# print(result1)
# for i in mutations:
#     print(i)

jsontxt = '{"name":"TOM1","age":181,"sex":2,"carId":421125199206260610}'
#jsonData = '{"a":1,"b":2,"c":3,"d":4,"e":5}'
text = json.loads(jsontxt)
print(text["age"])






